import ItemUtil from '@/ItemUtil';
import RandomUtil from '@/RandomUtil';
export default class Item_虾钳拳套 {
    static id = 'C00F';
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {}
    constructor() {
        EventManager.onTakeAttack(Item_虾钳拳套.spellEffect);
    }
    static spellEffect(d: DamageEventData) {
        if (!ItemUtil.isUnitHasItem(d.source, Item_虾钳拳套.id)) return;
        let r = RandomUtil.randomPercent();
        if (r > 0.5) return;
        let dmg = 500;
        d.lastDamage += dmg;
        DamageSystemInstance.applyPhysicalDamage(d.source, d.source, dmg);
    }
}
